package com.cjkj.applet.service.impl;

import com.cjkj.applet.service.TJ02ReportService;
import com.cjkj.common.core.web.domain.AjaxResult;
import com.cjkj.system.api.RemoteTJ02HealthReportService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class TJ02ReportServiceImpl implements TJ02ReportService {

    @Resource
    private RemoteTJ02HealthReportService remoteTJ02HealthReportService;

    @Override
    public AjaxResult getBraceletHeartReport(Long visitNo) {
        return remoteTJ02HealthReportService.getHeartReports(visitNo);
    }

    @Override
    public AjaxResult getBraceletTemperatureReport(Long visitNo) {
        return remoteTJ02HealthReportService.getTemperatureReports(visitNo);
    }

    @Override
    public AjaxResult getBraceletSpo2Report(Long visitNo) {
        return remoteTJ02HealthReportService.getSpo2Reports(visitNo);
    }

    @Override
    public AjaxResult getTJ02ReportData(String visitNos, String reportItems) {
        return remoteTJ02HealthReportService.requestPrintReportData(visitNos, reportItems);
    }
}
